package com.xy.xymall.member;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * 远程调用服务步骤
 * 1、引入open-feign
 * 2、编写一个接口，告诉SPringCLoud这个接口需要调用远程服务
 *      1、声明接口方法调用的是哪个服务的哪个请求地址
 * 3、开启远程调用功能
 */
@EnableDiscoveryClient
@SpringBootApplication
@EnableFeignClients(basePackages = "com.xy.xymall.member.feign")        //扫描该包下所有FeignClient注解的接口
public class XymallMemberApplication {

    public static void main(String[] args) {
        SpringApplication.run(XymallMemberApplication.class, args);
    }

}
